import os

try:
    from mutagen.easyid3 import EasyID3
except:
    os.chdir('lib')
    os.chdir('mutagen-1.20')
    
    os.system('python setup.py install')
    
    os.chdir('..')
    os.chdir('..')

try:
    import solr
except:
    os.chdir('lib')
    os.chdir('solrpy')
    
    os.system('python setup.py install')
    
    os.chdir('..')
    os.chdir('..')

try:
    import cherrypy
except:
    os.chdir('lib')
    os.chdir('CherryPy-3.1.2')
    
    os.system('python setup.py install')
    
    os.chdir('..')
    os.chdir('..')